﻿// 1.1.5.08. Write a program that, depending on the user's choice inputs int, double or string variable.
// If the variable is integer or double, increases it with 1. If the variable is string, appends "*" at its end. 
// The program must show the value of that variable as a console output. Use switch statement.

using System;

class AskForDataTypeAndProceed
{
    static void Main()
    {
        Console.Write("Please enter 1 for \"int\", 2 for \"double\" or 3 for \"string\": ");
        byte usersChoice = byte.Parse(Console.ReadLine());
        
        switch (usersChoice)
        {
            case 1: int usersInt = int.Parse(Console.ReadLine());
                Console.WriteLine(usersInt + 1); break;
            case 2: double usersDouble = double.Parse(Console.ReadLine());
                Console.WriteLine(usersDouble + 1); break;
            case 3: string usersString = Console.ReadLine();
                Console.WriteLine(usersString + "*"); break;
            default: Console.WriteLine("wrong choice"); break;
        }
    }
}